-
Notifications
You must be signed in to change notification settings - Fork 411
block-sync: poll: make best known chain tip optional #807
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
block-sync: poll: make best known chain tip optional #807
Conversation
Hmm, how are you trying to use |
|
Codecov Report
@@ Coverage Diff @@
## main #807 +/- ##
==========================================
+ Coverage 91.00% 91.05% +0.04%
==========================================
Files 48 48
Lines 25480 25492 +12
==========================================
+ Hits 23188 23211 +23
+ Misses 2292 2281 -11
Continue to review full report at Codecov.
|
Ah, good point. I wonder if we're better off just passing a |
How about another utility in |
That would end up downloading the full chain, no? Ideally we'd just start from the current tip because we don't care about any of the historical data. |
True. Giving |
We could also do a util function in init that returns the current best block as a |
Hmm... ok had some time to think about this. Doesn't calling We could make a utility that does this though technically it would ignore the |
Either sounds good to me, seems like it would have a similar public API. |
Superseded by #818. |
For clients who are bootstrapping and have no best known tip. Unless I'm missing something here.